<html>
  <head>
    <title>NEO Widget</title>
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <script async src="https://etest.dyned.com.cn/neowidget.min.js"></script>
  </head>
  <body>
    <neo
      id="widgetbyneo"
      data-neo-email="ama01@test.com"
      data-neo-mode="pt"
      data-neo-token="w26KtEDjbgiq8yatZoeWs0pKQeCHTAYGERFVoOkVM32wel7daF8cRG3jIlXVzpho"
      data-neo-dial-code="+86"
      data-neo-phone-number="187"
      data-neo-fullname="ama"
    ></neo>
  </body>
  <script>
    function UrlSearch() {
      var name, value;
      var str = location.href;
      var num = str.indexOf("?");
      str = str.substr(num + 1);

      var arr = str.split("&");
      for (var i = 0; i < arr.length; i++) {
        num = arr[i].indexOf("=");
        if (num > 0) {
          name = arr[i].substring(0, num);
          value = arr[i].substr(num + 1);
          this[name] = value;
        }
      }
    }
    var Request = new UrlSearch();
    console.log("Request", Request);
    var neo = document.getElementById("widgetbyneo");
    neo.setAttribute("data-neo-email", Request.email);
    neo.setAttribute("data-neo-phone-number", Request.phone);
    neo.setAttribute("data-neo-fullname", Request.name);
  </script>
</html>
